﻿all: APManage UpStainfo recev_AC_cmd

APOLManage = APManage.c Manage.h Manage.c 
upstainfo = UpStainfo.c Manage.h Manage.c
resaccmd = recev_AC_cmd.c

LDFLAGS+=-lmysqlclient -lz
APManage: $(APOLManage)
	$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
UpStainfo: $(upstainfo)
	$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
recev_AC_cmd: $(resaccmd)
	$(CC) $(CFLAGS) -o $@ $^

clean: 
	rm -f APManage 
	rm -f UpStainfo
	rm -f *.o




# '$@'----目标.
#'$<'----依赖中的第一个.
#'$^'----依赖中的所有.
# '%'----makefile中的通配符相当于vim中的'*'.

